
import type { MaSearchItem } from '@mineadmin/search'
import MaDictSelect from '@/components/ma-dict-picker/ma-dict-select.vue'

export default function getSearchItems(): MaSearchItem[] {
  return [
    {
      prop: 'username',
      render: ({ formData }) => (
        console.log(formData, 'row'),
        <el-input placeholder="请输入"
          v-slots={{
            // 前置插槽
            prepend: () => (
              <el-select
                modelValue={formData.type}
                onUpdate:modelValue={(val) => (formData.type = val)}
                style={{ width: '100px' }}
              >
                <el-option label="密码" value="1" />
                <el-option label="卡号" value="2" />
              </el-select>
            ),
          }}
        />
      )
    },
    {
      label: '状态',
       prop: 'sptype',
       render: ({ formData }) => (
        <el-select
          style={{ width: '140px' }}
        v-model={formData.sptype}
        >
          <el-option label="待售" value="0" />
          <el-option label="已售" value="1" />
        </el-select>
      ),
    }
  ]
}
